﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using LeoShi.Soft.OpenSinaAPI;
using System.IO;
using System.Xml;
using LTP.Common;
namespace TCS.Web.MembersHome
{
    public partial class deleteAttention : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string wb_u_id = Request.Params["wb_user_id"];
            var httpRequest = HttpRequestFactory.CreateHttpRequest(Method.POST);
            httpRequest.Token = Session["oauth_token"].ToString();
            httpRequest.TokenSecret = Session["oauth_token_secret"].ToString();
            httpRequest.UserRemoteIP = Request.UserHostAddress;
            string url = "http://api.t.sina.com.cn/friendships/destroy.xml";
            try
            {
                string ret = httpRequest.Request(url, "user_id=" + wb_u_id);
                Response.Write("1");
               
            }
            catch (Exception ex)
            {
                Response.Write("0");
                
            }
        }
    }
}
